package org.sdp.pearproject.controller;


import org.sdp.pearproject.dto.request.*;
import org.sdp.pearproject.dto.response.*;
import org.sdp.pearproject.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: InviteLinkSuperController
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-14
 * @Version: 1.0
 * Table: pear_invite_link
 * Comment:
 * 邀请链接表
 */
public class InviteLinkSuperController extends BaseController {
    @Autowired
    InviteLinkService service;

    public Integer addInviteLink(InviteLinkAddRequest request) throws Exception {
        return service.addInviteLink(request);
    }

    public Integer updateInviteLink(InviteLinkUpdateRequest request) throws Exception {
        return service.updateInviteLink(request);
    }

    public Integer deleteInviteLink(InviteLinkDeleteRequest request) throws Exception {
        return service.deleteInviteLink(request);
    }

    public InviteLinkQueryResponse queryInviteLink(InviteLinkQueryRequest request) throws Exception {
        return service.queryInviteLink(request);
    }

    public List<InviteLinkQueryResponse> listInviteLink(InviteLinkQueryRequest request) throws Exception {
        return service.listInviteLink(request);
    }

    public Integer countInviteLink(InviteLinkQueryRequest request) throws Exception {
        return service.countInviteLink(request);
    }

    public BaseStatResponse statInviteLink(InviteLinkQueryRequest request) throws Exception {
        return service.statInviteLink(request);
    }


}
